<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title><{:C('web_site_name')}>---角色添加</title>
<link rel="stylesheet" type="text/css" href="<?php echo APP_TMPL_PATH ; ?>/static/css/common.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo APP_TMPL_PATH ; ?>/static/css/main.css"/>
<script type="text/javascript" src="<?php echo APP_TMPL_PATH ; ?>/static/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo APP_TMPL_PATH ; ?>/static/js/layer/lib.js"></script>
<script type="text/javascript" src="<?php echo APP_TMPL_PATH ; ?>/static/js/layer/layer.min.js"></script>
</head>
<body>


<form  id="info_form" action="<?php echo  U("role/add" , array('action'=>'doadd' , 'showpage'=>1 ) ) ; ?>" method="post">
<div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i>首页<span class="crumb-step">&gt;</span><span class="crumb-name">角色添加</span></div>
        </div>
        
        <div class="result-wrap">
            <div class="result-content">
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <tr>
                                <th><i class="require-red">*</i>角色名称：</th>
                                <td>
                                    <input class="common-text required" id="rolename" name="rolename" size="40" value="" type="text"><i>必填</i>
                                </td>
                            </tr>
                            
                            <tr>
                                <th>状态：</th>
                                <td>
                                <input type="radio" name="status" value="1" checked/> 启用
    <input type="radio" name="status" value="0"/> 禁用
                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                </td>
                            </tr>
                        </tbody></table>
            </div>
        </div>
       
      </form>  
    
   </body>
   </html>    
   
  <script type="text/javascript" src="<?php echo APP_TMPL_PATH ; ?>/static/js/formvalidator.js"></script> 
<script>

$(function(){
	$.formValidator.initConfig({formid:"info_form",autotip:true});
	$("#rolename").formValidator({onshow:'请填写角色名称',onfocus:'请填写角色名称'}).inputValidator({min:1,onerror:'请填写角色名称'});


});



</script>
        
        